package com.jt.demo1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class User {

    public static void main(String[] args) {
        String resource="spring.xml";
        ApplicationContext context = new ClassPathXmlApplicationContext(resource);
        Dog dog = context.getBean(Dog.class);
        dog.hello();
    }
}
